package cn.java.caixiaoqing.service.impl;

import cn.java.caixiaoqing.dao.TeacherDao;
import cn.java.caixiaoqing.domain.Teacher;
import cn.java.caixiaoqing.service.TeacherService;
import cn.java.caixiaoqing.utils.MybatisUtils;

import java.util.List;

public class TeacherServiceImpl implements TeacherService {

    private TeacherDao teacherDao = MybatisUtils.getSqlSession().getMapper(TeacherDao.class);

    @Override
    public List<Teacher> finAllTeachers() {
        return teacherDao.findAll();
    }
}
